#ifndef QTOUCHAPPLICATION_H
#define QTOUCHAPPLICATION_H

#include <QApplication>

class MainWindow;
class PluginInterface;
class AbstractCore;
class QWidgetPluginInterface;

class QTouchApplication: public QApplication
{
    Q_OBJECT
public:
    QTouchApplication(int argc, char *argv[]);

    ~QTouchApplication();

    void    showPage();

    void addPlugin(PluginInterface *plugin);

    int plugincount(){return m_pluginList.size();}
protected slots:
    void    addObject(QObject* obj);
protected:
    void    saveSetting();
    void    initSetting();

protected:
    MainWindow  *m_mainwindow;
    QList<PluginInterface*>     m_pluginList;
    AbstractCore                *m_core;
};

#endif // QTOUCHAPPLICATION_H
